package io.gitee.yth.design.pattern.test.core.pattern.behavioral.visitor.element;

import io.gitee.yth.design.pattern.test.core.pattern.behavioral.visitor.visitor.Visitor;

/**
 * @author yth
 * @since 2023-04-29-16:32
 */
public class BooleanElement implements Visitable {

    private final Boolean value;

    public BooleanElement(boolean value) {
        this.value = value;
    }

    public Boolean getValue() {
        return value;
    }

    @Override
    public void accept(Visitor v) {
        v.visitBoolean(this);
    }
}
